﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;

namespace PleaseORM.Structs
{
	public struct EntityMember
	{
		private EntityMember(string member, dynamic value)
		{
			Member = member;
			Value = value;
		}

		public static EntityMember Make(DbDataReader reader, DataRow row)
		{
			var columnName = row["ColumnName"].ToString();
			var columnValue = reader[columnName];

			return new EntityMember(columnName, columnValue);
		}

		public string Member;
		public dynamic Value;
	}
}
